package cn.usian.jyzx.pay.fegin;

import cn.usian.jyzx.model.entity.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 11 11 14 59
 **/

@FeignClient("order-service")
public interface OrderFegin {

    @GetMapping("/api/order/getOrderInfo/{orderNo}")
    public OrderInfo getOrderInfo(@PathVariable
                                  String orderNo);

    @GetMapping("/api/order/updateOrderStatus/{orderNo}/{status}")
    public int updateOrderStatus(@PathVariable("orderNo") String orderNo,
                                 @PathVariable("status")Integer status);
}
